package csw;

import java.util.Scanner;

public class J23SungJukServiceImpl implements J23SungJukService {
	
	private J23SungJukDAO sjdao= null;
	
	public J23SungJukServiceImpl(){
		sjdao = new J23SungJukDAOImple();
	}

	@Override
	public void newSungJuk() {
		Scanner sc = new Scanner(System.in);
		System.out.println("성적 데이터를 입력합니다");
		System.out.println("이름 국어 영어 수학 순으로 입력합니다");
		J23SungJuk2VO sj = new J23SungJuk2VO(sc.next(),sc.nextInt(),sc.nextInt(),sc.nextInt());
		
		computeSungJuk(sj);  //총점 평균 학점
		sjdao.insertSungJuk(sj);
		
		
		
	}// newSungJuk

	private void computeSungJuk(J23SungJuk2VO sj) {
		
	}//computeSungJuk

}
